package com.mall.domain.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @description: 订单详情视图
 * @author 勾新杰
 * @version 1.0
 * @date 2024/11/25 15:47
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "订单详情视图")
public class OrderDetailVO {
    @Schema(description = "订单id")
    private Long id;
    @Schema(description = "用户id")
    private Long userId;
    @Schema(description = "地址id")
    private Long addressId;
    @Schema(description = "订单号")
    private Long orderNo;
    @Schema(description = "订单总金额")
    private Double totalAmount;
    @Schema(description = "订单状态,0未支付，1已支付, 2未发货，3已发货，4已收货，5已退货")
    private Integer orderStatus;
    @Schema(description = "订单支付时间")
    private String paymentTime;
    @Schema(description = "订单发货时间")
    private String deliveryTime;
    @Schema(description = "订单详情")
    private List<OrderItemVO> orderItemList;
}
